﻿using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Expression;
using Castle.ActiveRecord;

namespace Mang24k99.Model.GOLD
{
    [ActiveRecord(Table = "KT_GOLD_GOLDBREED_History")]
    public partial class MKtGoldGoldbreedHistory : ActiveRecordBase
    {
        public static IList<MKtGoldGoldbreedHistory> SelectAll()
        {
            return (IList<MKtGoldGoldbreedHistory>)FindAll(typeof(MKtGoldGoldbreedHistory));
        }
        public static MKtGoldGoldbreedHistory SelectByPrimaryKey(object ID)
        {
            return (MKtGoldGoldbreedHistory)FindByPrimaryKey(typeof(MKtGoldGoldbreedHistory), ID);
        }
        public static IList<MKtGoldGoldbreedHistory> SelectALLByProperty(string property, object value)
        {
            return (IList<MKtGoldGoldbreedHistory>)FindAllByProperty(typeof(MKtGoldGoldbreedHistory), property, value);
        }
        public static IList<MKtGoldGoldbreedHistory> SelectALLSliced(int firstResult, int maxResult, NHibernate.Expression.DetachedCriteria criteria)
        {

            return (IList<MKtGoldGoldbreedHistory>)SlicedFindAll(typeof(MKtGoldGoldbreedHistory), firstResult, maxResult, criteria);
        }



        /// <summary>
        /// Gets or sets the ID.()
        /// </summary>
        /// <value>The ID.</value>
        [PrimaryKey(PrimaryKeyType.Native, "ID")]
        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }


        /// <summary>
        /// Gets or sets the BreedNO.()
        /// </summary>
        /// <value>The BreedNO.</value>
        [Property("BREED_NO")]
        public int? BreedNO
        {
            get
            {
                return _BreedNO;
            }
            set
            {
                _BreedNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the BreedName.()
        /// </summary>
        /// <value>The BreedName.</value>
        [Property("BREED_NAME")]
        public string BreedName
        {
            get
            {
                return _BreedName;
            }
            set
            {
                _BreedName = value;
            }
        }


        /// <summary>
        /// Gets or sets the BreedType.()
        /// </summary>
        /// <value>The BreedType.</value>
        [Property("BREED_TYPE")]
        public int? BreedType
        {
            get
            {
                return _BreedType;
            }
            set
            {
                _BreedType = value;
            }
        }


        /// <summary>
        /// Gets or sets the CloseShow.()
        /// </summary>
        /// <value>The CloseShow.</value>
        [Property("CLOSE_SHOW")]
        public int? CloseShow
        {
            get
            {
                return _CloseShow;
            }
            set
            {
                _CloseShow = value;
            }
        }


        /// <summary>
        /// Gets or sets the ProductBelong.()
        /// </summary>
        /// <value>The ProductBelong.</value>
        [Property("PRODUCT_BELONG")]
        public int? ProductBelong
        {
            get
            {
                return _ProductBelong;
            }
            set
            {
                _ProductBelong = value;
            }
        }


        /// <summary>
        /// Gets or sets the IsValidate.()
        /// </summary>
        /// <value>The IsValidate.</value>
        [Property("IS_VALIDATE")]
        public int? IsValidate
        {
            get
            {
                return _IsValidate;
            }
            set
            {
                _IsValidate = value;
            }
        }


        /// <summary>
        /// Gets or sets the InputTime.()
        /// </summary>
        /// <value>The InputTime.</value>
        [Property("INPUT_TIME")]
        public DateTime? InputTime
        {
            get
            {
                return _InputTime;
            }
            set
            {
                _InputTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the ModifyTime.()
        /// </summary>
        /// <value>The ModifyTime.</value>
        [Property("MODIFY_TIME")]
        public DateTime? ModifyTime
        {
            get
            {
                return _ModifyTime;
            }
            set
            {
                _ModifyTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the DeleteTime.()
        /// </summary>
        /// <value>The DeleteTime.</value>
        [Property("DELETE_TIME")]
        public DateTime? DeleteTime
        {
            get
            {
                return _DeleteTime;
            }
            set
            {
                _DeleteTime = value;
            }
        }



        private int _ID;

        private int? _BreedNO;

        private string _BreedName;

        private int? _BreedType;

        private int? _CloseShow;

        private int? _ProductBelong;

        private int? _IsValidate;

        private DateTime? _InputTime;

        private DateTime? _ModifyTime;

        private DateTime? _DeleteTime;


    }
}
